home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / bat.zip / BATDOC.BAT < prev    next >
DOS Batch File  |  1984-08-28  |  40KB  |  1,028 lines

  1. bat * Loading on-line HELP and DOCUMENTATION .....
  2. bat * Written by F.Canova 10/5/83.  Enhanced Ken Goosens 11/15/83.
  3. bat * (c) Copyright 1983 by Seaware Corp. all rights reserved.
  4.  
  5. bat    goto -line0
  6.  
  7. bat -header |* Routine prints general purpose header for help text
  8. bat    stack.purge |*    remove any pre-typed keystrokes.
  9. bat    cls begtype
  10. ╔════════════════════════════════════════════════════════════════════════════╗\0F
  11. end
  12. bat    type %s%s%s %h ............. Page %n
  13. bat    begtype
  14. ╚════════════════════════════════════════════════════════════════════════════╝
  15.     Press:  PGDN for next page,   PGUP for prev page,  HOME for main menu.
  16.  
  17. end
  18. bat    return
  19.  
  20. bat -scroll |* Routine accepts key for scrolling help text
  21. bat    inkey %k
  22. bat    if %k = KEY003         goto -opt0 |* Break key
  23. bat    if %k = KEY01B %L = 0       | return |* ESC  key
  24. bat    if %k = KEY147 %L = 0       | return |* Home key
  25. bat    if %k = KEY149 %L = %L - 1 | cls | return |* PgUp key
  26. bat    if %k = KEY151 %L = %L + 1 | cls | return |* PgDn key
  27. bat    goto -scroll |* ignore any other key.
  28.  
  29. bat    * ROUTINE TO HAVE USER GIVE A COMMAND A TRY !!
  30. bat    * %A = string which must match
  31. bat -tryit
  32. bat    begtype
  33.  
  34.   Enter your guess!  ;
  35. end
  36. bat -tryit.loop
  37. bat    if .%a <> . skip 8    |* end of string ?
  38. bat    begtype
  39.  
  40.  
  41. EXCELLENT !! - that's exactly it!
  42.  
  43. end
  44. bat    read Press the ─┘ key to continue to next section.....
  45. bat    return
  46. bat    %b = %a $ 1 1        |* get 1st letter
  47. bat    %a = %a $ 2        |* remove it from string
  48. bat -tryit.try
  49. bat    inkey %i        |* get a key.
  50. bat    if %i = KEY020 type %b; | goto -tryit.loop
  51. bat    if %i = %b type %i; | goto -tryit.loop
  52. bat    beep goto -tryit.try
  53.  
  54. bat -line0
  55. bat -line44
  56. bat    cls begtype
  57. \0F╔════════════════ BATDOC ═══════════════════╗
  58. ║     Menu driven HELP and DOCUMENTATION.   ║
  59. ╙───────────────────────────────────────────╜
  60.  
  61.     GENERAL:\07
  62. 1.    Introduction and how to use this Help.
  63. 2.    The user supported concept.
  64. 3.    BAT-BBS information. On-line users forum.
  65.  
  66.     \0FEXTENDED BATCH LANGUAGE version 2.0\07
  67. 4.    What BAT is.... an introduction.
  68. 5.    Printing to display.
  69. 6.    Reading data from users.
  70. 7.    Making decisions and controlling program flow.
  71. 8.    Using the keyboard stack.
  72. 9.    Sensing program's results.
  73. 10.    Assignment statements.
  74. 11.    Debugging aids.
  75. 12.    Additional information.
  76.  
  77. 0.    Exit.
  78.  
  79. END
  80.  
  81. bat -entry0
  82. bat    read Enter the number of your selection. > %A
  83. bat    if / = /%a    %a = 1
  84. bat    if %a < 13 if %a > 1/ cls goto -opt%a
  85. bat    if %a < :  if %a >  / cls goto -opt%a
  86. bat    beep begtype
  87. I DON'T KNOW THAT OPTION!
  88. Just enter a number 0 to 12 and press the ─┘ key.
  89.  
  90. end
  91. bat    goto -entry0
  92.  
  93. bat    -opt0    cls begtype
  94. Ready to leave on-line help! Press a key:
  95.  
  96. <\0FS\07>ystem    <\0FD\07>emo    <\0FH\07>elp
  97. end
  98. bat    -exiting inkey %a
  99. bat        if %a = S    exit
  100. bat        if %a = H    goto -line0
  101. bat        if %a = D    stack BATDEMO | exit
  102. bat        beep goto -exiting
  103.  
  104. bat -line1
  105. bat -opt1 %h = INTRODUCTION | %L = 1 | %N = 1.0
  106. bat    call -header
  107. bat    begtype
  108.     This program will provide you with help information on the use of
  109. the EXTENDED BATCH LANGUAGE version 2.0.  It is designed to allow for
  110. easy access and retrieval of information that would be harder to find
  111. by more conventional means.
  112.  
  113.     The information is broken up into multiple sections.  Each section
  114. may have several pages.  To access each page in order, just keep
  115. pressing the PGDN key.    At the top of your screen is the name of the
  116. section which you are in and the page number.
  117.  
  118. \0FNote:\07
  119.  
  120.     If you wish to directly enter another section now, press the \0fHOME\07
  121. key to return to the main menu, enter the proper \0fsection number\07 and
  122. press the \0f─┘\07 key.
  123.  
  124. end
  125. bat    call -scroll | goto -line%L
  126. bat -line2 %n = 1.1 | call -header | begtype
  127. While in any of these sections, there are just three keys needed:
  128.  
  129. PGDN -    This key will advance to the next page of any section. If
  130.     there are no more pages in the section, then it will advance
  131.     to the next section.
  132.  
  133. PGUP -    This key will back up to a previous page within a section.
  134.     If there are no more previous pages within a section, it
  135.     will backup to the previous section.
  136.  
  137. HOME or ESC - Either of these keys will return directly to the
  138.     main menu. From the menu, any section can be looked at
  139.     directly by entering the section number and pressing ─┘.
  140. end
  141. bat    call -scroll | goto -line%L
  142. bat -line3 %n = 1.2 | call -header | begtype
  143.   There are several sections where you will be given questions and answers.
  144. If you would like to peek and see answer without specifically answering it,
  145. you can press the space bar to reveal the answer letter by letter.
  146.  
  147.     One interesting facet you should know while using this on-line help
  148. and documentation is that you are using the EXTENDED BATCH LANGUAGE
  149. program to display and control these menus.
  150.  
  151.     Never before has a batch language been so powerful on the IBM
  152. personal computer as to be able to provide a facility like this.  In
  153. the following pages of description, we hope that you will see, as we
  154. did, that this program has extraordinary capability which does much
  155. more than just expand the capability of DOS.  In fact, it gives new
  156. power to your system by providing capabilities never before possible.
  157. end
  158. bat    call -scroll | goto -line%L
  159. bat -opt2
  160. bat -line4 %H = USER%sSUPPORTED | %L = 4 | %n = 2.0 | call -header | begtype
  161.  ╓─                                     ─╖
  162.  ║  PRIVATE USERS, If you are using this program and find it of value,      ║
  163.  ║        your contribution ($30 suggested) will be appreciated.      ║
  164.  ║                                      ║
  165.  ║  You  are encouraged to  copy and share this program with other users, ║
  166.  ║ on the  conditions that the    program is not    distributed  in  modified ║
  167.  ║ form, that no fee or consideration is charged, and that this notice is ║
  168.  ║ not bypassed or removed.                          ║
  169.  ║                                      ║
  170.  ║  In appreciation of your $30 contribution, you will be provided with a ║
  171.  ║ detailed users guide and  diskette  giving you complete  descriptions, ║
  172.  ║ examples, and tips on this program's use. All contributors are given   ║
  173.  ║ access to the BAT-BBS, a hot-line for assistance, tips, and updates.   ║
  174.  ║                                      ║
  175.  ║ The $30 license fee (per system) is required for COMMERCIAL USERS if   ║
  176.  ║ used in a place of business or incorporated into another product.      ║
  177.  ║                                      ║
  178.  ╙─  (c) Copyright 1982, 1983 by Seaware Corp. All rights reserved.     ─╜
  179. end
  180. bat    call -scroll | goto -line%L
  181. bat -line5 %n = 2.1 | call -header | begtype
  182.   For your $30 contribution, you will be provided with a detailed users
  183. guide.    This hardcopy manual has over 70 pages of descriptions, examples,
  184. useful utilities, and tips on this program's use.  It is prepunched for an
  185. IBM binder for ready reference.  You will also receive a diskette
  186. containing the latest program version and useful utilities.  All
  187. contributors are also invited to use the BAT-BBS, an on-line forum for
  188. user's ideas, tips, programs, and assistance.  (See next section for more
  189. information).  Only with your support can we help you even more.
  190.  
  191.   This concept was founded by Andrew Fugleman at Headlands Press, Inc.
  192. with a series of software called "Freeware"(tm).  I would like to thank
  193. Andrew for his inspiration and help.  Because I feel that good software
  194. should have someone standing behind it, we at Seaware want to put your
  195. contribution directly into support for you as our thanks of your support of
  196. us.  If you find this program of value, you are encouraged to send in your
  197. contribution.  Your support will not go unnoticed.
  198.  
  199. Seaware Corp. ≡≡≡≡ Post Office Box 1656 ≡≡≡≡ Delray Beach, FL 33444
  200. end
  201. bat    call -scroll | goto -line%L
  202. bat -opt3
  203. bat -line6 %H = BAT%s-%sBBS | %L = 6 | %n = 3.0 | call -header | begtype
  204.  
  205. One of the special services we provide to EXTENDED BATCH LANGUAGE
  206. users is through a communication medium called "BAT-BBS". This is
  207. a direct link from you to other users, as well as Seaware.
  208.  
  209.  
  210. The following list shows the many things that
  211.  
  212.     BAT-BBS can provide .  .  .
  213.  
  214. end
  215.  
  216. bat    call -scroll | goto -line%L
  217. bat -line7 %n = 3.1 | call -header | begtype
  218. FOR USERS WITH A MODEM:
  219.  
  220.     * BAT-BBS is a hotline for your questions!
  221.  
  222.     * Directly access our computer at Seawar